package com.da.auth.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.da.auth.entity.DailySaltUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * (DailySaltUser)表数据库访问层
 *
 * @author makejava
 * @since 2025-01-16 17:45:04
 */
@Mapper
public interface DailySaltUserMapper extends BaseMapper<DailySaltUser> {
    DailySaltUser queryById(String id);
    List<DailySaltUser> queryAllByLimit(DailySaltUser dailySaltUser, @Param("pageable") Pageable pageable);
    long count(DailySaltUser dailySaltUser);
    int insert(@Param("dailySaltUser") DailySaltUser dailySaltUser);
    int insertBatch(@Param("entities") List<DailySaltUser> entities);
    int insertOrUpdateBatch(@Param("entities") List<DailySaltUser> entities);
    int update(DailySaltUser dailySaltUser);
    int deleteById(String id);

    void batchInsert(@Param("dailySaltUserList") List<DailySaltUser> dailySaltUserList);

    DailySaltUser queryByUserId(@Param("userId") String userId);
}

